<%-- 
    Document   : login
    Created on : Nov 8, 2013, 7:16:40 PM
    Author     : Liem
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="header.jsp"/>
<script type="text/javascript" charset="UTF-8">
    function validate() {
        var username = document.getElementById("username");
        return true;
    }
</script>
<div class="container">
    <s:form cssClass="form-signin" action="login" method="post">
        <h3 class="form-signin-heading">Please sign in</h3>
        <div class="controls input-icon">
            <i class=" icon-user-md"></i>
            <input type="text" class="input-block-level" placeholder="Username" name="username" id="username">
        </div>
        <div class="controls input-icon">
            <i class=" icon-key"></i><input type="password" class="input-block-level" placeholder="Password" id="password" name="password">
        </div>
        <c:if test="${not empty param.error}">
            <div class="controls">
                <font color="red">
                    <c:out value="${param.error}"/>
                </font>
            </div>
        </c:if>
        <button class="btn btn-inverse btn-block" type="submit" value="Login" onclick="validate()">Sign in</button>
        <h5>Don't have an account yet ?</h5>
        <a href="register.jsp" class="btn btn-success btn-block">Create Account</a>
    </s:form>
</div>
<jsp:include page="footer.jsp"/>
